<?php

class Default_SessionManager implements ISessionManager {

    public function getUser() {
        return array(
            'idUser' => 1,
            'login' => '1',
            'email' => '1@1.com',
            'profile' => '1',
            'inscription' => '01/01/2013',
        );
    }

    public function getUserId() {
//         $idUser = $_SESSION['user']['idUser'];
//         return $idUser;
        return 1;
    }

    public function getUserName() {
        //         $idUser = $_SESSION['user']['idUser'];
        //         return $idUser;
        return '1';
    }

    public function isConnected() {
        return true;
    }

    public function emptySession() {
        $_SESSION = array();
    }

    public function getLoginPageUrl() {
        // FIXME: 'login/index'
        return "http://" . $_SERVER['SERVER_NAME'];
    }

}
